import request from '@/utils/request'

export async function addProduct(data) {
  return await request({
    url: 'product/add',
    method: 'post',
    data
  })
}

export async function getProductList(data) {
  return await request({
    url: 'product/list',
    method: 'post',
    data
  })
}

export async function updateProduct(data) {
  return await request({
    url: 'product/update',
    method: 'post',
    data
  })
}

export async function getProductsOptionsList(data) {
  return await request({
    url: 'product/option',
    method: 'post',
    data
  })
}

export async function removeProduct(data) {
  return await request({
    url: 'product/remove',
    method: 'post',
    data
  })
}
